package com.baizhi.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2019/4/9 0009.
 */
@Data
@TableName(value = "cmfz_album")
public class CmfzAlbum {
    @TableId(value = "album_id",type = IdType.AUTO)
    @JSONField(name = "id")
    private Integer albumId;
    @JSONField(name = "name")
    private String albumName;
    private String albumAuthor;
    private String albumTeller;
    private Integer albumEpisodes;
    @JSONField(format = "yyyy-MM-dd")
    private Date albumDate;
    private String albumContent;
    private String albumImage;
    private Integer albumStar;
    @JSONField(name = "children")
    @TableField(exist = false)
    private List<CmfzAudio> cmfzAudios;
}
